package com.example.automanagement.mapper;

import com.example.automanagement.entity.Alarm;
import com.example.automanagement.entity.HomeTableData;
import com.example.automanagement.entity.ToDo;
import com.example.automanagement.entity.Warning;
import com.example.automanagement.views.autoStatusNumber;
import com.example.automanagement.views.autoTypeNumber;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HomeDataMapper {
    public List<HomeTableData> getHomeTableData();
    public List<Alarm> getAlarmList(@Param("userId")String userId);
    public List<Warning> getWarnList(@Param("userId")String userId);
    public List<ToDo> getTodoDoneList(@Param("userId")String userId);
    public List<ToDo> getTodoUndoneList(@Param("userId")String userId);
    public int getTodoUndoneNumber(@Param("userId")String userId);
    public List<autoStatusNumber> getAutoStatusNumber();
    public List<autoTypeNumber> getAutoTypeNumber();
}
